package uns.fit.gis.alg;

import uns.fit.gis.mapdrawer.MapCanvas;

public class WrongRouteState extends State {

	public void doService() {
		updateRoute();
	}

	private void updateRoute() {
		MapCanvas.alg.setSource(MapCanvas.currentX, MapCanvas.currentY);
		MapCanvas.alg.runDijstraAlg();
		System.out.println("UPDATE");
	}
}
